﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SanPham
/// </summary>
public class SanPham
{
    protected int danhMucID;
    private int iDSanPham;
    private int gianHangID;
    private string tenSanPham;
    private string anh;
    private List<ThongSoKiThuat> thongSos; 

    public List<ThongSoKiThuat> ThongSos
    {
        get { return thongSos; }
        set { thongSos = value; }
    }
    public int IDSanPham
    {
        get { return iDSanPham; }
        set { iDSanPham = value; }
    }


    public int DanhMucID
    {
        get { return danhMucID; }
        set { danhMucID = value; }
    }
   

    public string TenSanPham
    {
        get { return tenSanPham; }
        set { tenSanPham = value; }
    }
  

    public string AnhSPGoc
    {
        get { return anh; }
        set { anh = value; }
    }
    public SanPham(int danhMucID,int iDSanPham)
	{
		this.danhMucID = danhMucID;
        this.IDSanPham = iDSanPham;
        thongSos = new List<ThongSoKiThuat>();
	}
    public SanPham(SanPham sp)
    {
        DanhMucID = sp.DanhMucID;
        IDSanPham = sp.IDSanPham;
        TenSanPham = sp.TenSanPham;
        AnhSPGoc = sp.AnhSPGoc;
        ThongSos = sp.ThongSos;
    }

    public SanPham()
    {
        // TODO: Complete member initialization
    }   
}
